From bb237540153b03a96c44cf531812f21ae2d2c2ac Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 26 Jul 2005 12:32:04 +0000 Subject: [PATCH] Remove extra pass over track and route queues. --- gpsbabel/dopfilt.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/gpsbabel/dopfilt.c b/gpsbabel/dopfilt.c index a4594684a..7a767b5dc 100644 --- a/gpsbabel/dopfilt.c +++ b/gpsbabel/dopfilt.c @@ -76,10 +76,6 @@ void fix_process(void) { waypoint * waypointp; - - int tc = track_count(); - int rc = route_count(); - queue *elem, *tmp; extern queue waypt_head; @@ -111,12 +107,10 @@ fix_process(void) } // Filter tracks - if (tc > 0) - track_disp_all(fix_process_track, NULL, NULL); + track_disp_all(fix_process_track, NULL, NULL); // And routes - if (rc > 0) - route_disp_all(fix_process_track, NULL, NULL); + route_disp_all(fix_process_track, NULL, NULL); } -- 2.30.2